
<div class="page-header">
	<h2>Twoje ogłoszenia</h2>
</div>
<?php echo $this->Session->flash('flash'); ?>
<a class="btn btn-primary" href="/advertisements/add" role="button"><i class="glyphicon glyphicon-plus-sign"></i> Dodaj</a>
</br>
</br>
<div class="table-responsive" id="advertisementsTable">
    <script>Advertisements.createTable('<?php echo json_encode($advertisements); ?>', <?php echo $isLoggedUserAdmin ?>);</script>
</div>
<div id="paginator" style="margin:0px auto; display:block; text-align:center; margin-bottom:20px;" >
<?php  
echo $this->Paginator->prev(' << ', array(), null, array('class' => 'prev disabled'));
echo $this->Paginator->numbers(array('separator'=>' '));
echo $this->Paginator->next(' >> ', array(), null, array('class' => 'next disabled'));
?>
</div>